﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Web;
//using System.Web.Mvc;
//using mBlog.ViewModels;
//using mBlog.Core.Services;
//using mBlog.Models;

//namespace mBlog.Admin.Controllers
//{
//    public class CommentController : AdminBaseController
//    {
//        //private ICommentService commentService;

//        public CommentController(ICommentService cmtService)
//        {
//            this.commentService = cmtService;
//        }

//        [Authorize]
//        public ActionResult List(int? page)
//        {
//            ListView<CommentDetail> lvComments = new ListView<CommentDetail>();
//            lvComments.List = commentService.Get(page, ItemsPerPage).ToList();

//            PagerView pager = new PagerView();
//            pager.PageCount = (int)Math.Ceiling((double)commentService.Count()/ ItemsPerPage);
//            pager.CurrentPage = page ?? 0;
//            pager.ActionName = "List";
//            pager.ControllerName = "CommentDetail";

//            lvComments.Pager = pager;

//            return View(lvComments);
//        }

//        [Authorize]
//        public ActionResult Delete(long id)
//        {
//            commentService.Delete(commentService.Single(id));

//            return RedirectToAction("List");
//        }

//    }
//}
